package bupt.xixi.learning.beans.factory;

import bupt.xixi.learning.beans.BeansException;

import java.util.Map;

public interface ListableBeanFactory extends BeanFactory {
    /**
     * 按照所有类型返回bean实例
     */
    <T> Map<String, T> getBeansOfType(Class<T> type) throws BeansException;

    /**
     * 返回注册表中所有beanDefinition的名字
     */
    String[] getBeanDefinitionNames();
}
